export const get = (url = null, params = {}, auth = true) => {
	return uni.$u.http.get(url, {
		params: params, 
		custom: {auth: auth}
	})
}

export const post = (url = null, data = {}, auth = true) => {
	return uni.$u.http.post(url, data, {
		custom: {auth: auth},
	})
}

export const put = (url = null, data = {}, auth = true) => {
	return uni.$u.http.put(url, data, {
		custom: {auth: auth},
	})
}

export const delete = (url = null, data = {}, auth = true) => {
	return uni.$u.http.delete(url, data, {
		custom: {auth: auth},
	})
}